﻿#ifndef CCorrectPlcOper_H
#define CCorrectPlcOper_H
/********************************************************************************
** @ Date:2024/09/10
** @ Author: HanJiaXin
** @ Description:纠偏高级功能界面
** @ Version:1.0.0
** @ ClassName:
** @ Fun:
********************************************************************************/
#include <QDialog>
#include <QTimer>
#include "ui_CCorrectPlcOper.h"
#include "CDevBeltRealign.h"

class CCorrectPlcOper : public QDialog
{
	Q_OBJECT

public:
	CCorrectPlcOper(QString sPointName,CDevBeltRealign* pDev,QWidget *parent = nullptr);
	~CCorrectPlcOper();

private:
	void setStyleSheetFile();//设置界面的样式表
	void initConnect();      //初始化槽函数连接

private slots:
	void slotDataRefresh();//定时器刷新
	void slotAutoMode();//自动模式
	void slotManualMode();//手动模式
	void slotManualLeftRotateP();//左转按下
	void slotManualLeftRotateR();//左转松开
	void slotManualRightRotateP();//右转按下
	void slotManualRightRotateR();//右转松开


public slots:
	void refreshData(bool bRefresh);

private:
	Ui::CCorrectPlcOperClass ui;
	QString m_sPointGuid;
	CDevBeltRealign* m_pDev;
	CDevDataBeltRealign* m_pDevDataBeltRealign;
	QString m_sNormalLamp;//指示灯灭样式表字符串
	QString m_sWorkLamp;//指示灯绿灯样式表字符串
	QString m_sAlarmLamp;//指示红灯样式表字符串
	QString m_sWarningLamp;//指示黄灯样式表字符串
	QTimer* m_pTimer;//数据刷新定时器
};
#endif